﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoTLBB
{
	public class NumericTextBox : TextBox
	{
		protected override void OnKeyPress(KeyPressEventArgs e)
		{
			base.OnKeyPress(e);
			if (!(Char.IsDigit(e.KeyChar) || e.KeyChar ==(char)Keys.Delete || e.KeyChar =='\b')) {
				e.Handled = true;
			}
		}
	}
}
